<!DOCTYPE html>
<html lang="en" ng-app="SimpleDirectiveModule">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../lib/angular-1.3.0.js"></script>
    <script src="../js/controller/20180426_Directive.js"></script>
</head>
<body ng-controller="SimpleDirectiveCtrl">
<br>
<myattr>简单指令</myattr>

<button ng-click="changeData()"></button>

<my-directive myattr2="changeData()">
使用指令的属性 调用控制器的方法</my-directive>

</body>
</html>